package com.lingxu.base.system.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_org")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_org对象", description="单位信息表")
public class SysOrg implements Serializable{
    
	/**主键*/
	@TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键")
	private String id;
	/**上级单位ID*/
    @ApiModelProperty(value = "上级单位ID")
	private String pid;
	/**组织机构代码*/
    @ApiModelProperty(value = "组织机构代码")
	private String code;
	/**单位名称*/
    @ApiModelProperty(value = "单位名称")
	private String name;
	/**单位地址*/
    @ApiModelProperty(value = "单位地址")
	private String address;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间",hidden = true)
	private Date createTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人",hidden = true)
	private String createBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间",hidden = true)
	private Date updateTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人",hidden = true)
	private String updateBy;
	/**删除标志位*/
    @ApiModelProperty(value = "删除标志位")
	private String isDel;
	/**单位简称*/
    @ApiModelProperty(value = "单位简称")
	private String simpleName;
	/**单位等级*/
    @ApiModelProperty(value = "单位等级")
	private String orgLevel;
	/**联系人*/
    @ApiModelProperty(value = "联系人")
	private String linkPerson;
	/**联系电话*/
    @ApiModelProperty(value = "联系电话")
	private String telephone;
	@ApiModelProperty(value = "单位类型")
	private String dwlx;
	@ApiModelProperty(value = "上级单位名称")
	private String pName;
	private Integer sort;
}
